<?php 
	$cateA = Db::table('category')->where('pid=0')->get();
    
?>
<div id="header">
		<div class="center">
			<ul>
				<li><a href="<?php echo U('User/login')?>"><i class="iconfont" style="color: rgb(132,195,91);">&#xe607;</i> 微信登录</a></li>
				<li><a href="<?php echo U('User/login')?>"><i class="iconfont" style="color: rgb(132,195,91);">&#xe601;</i> QQ登录</a></li>
				
				<li><a href="<?php echo U('User/login')?>">登录</a></li>
				<li><a href="<?php echo U('User/reg')?>">注册</a></li>
				<li><a href=""><i class="iconfont" style="color: rgb(255,102,153);">&#xe604;</i> 我的购物车</a></li>
				<li><a href=""><i class="iconfont" style="color:#666">&#xe602;</i> 我的订单</a></li>
				<li><a href=""><i class="iconfont" style="color:#666">&#xe609;</i> 下载APP</a></li>
				<li><a href="">帮助中心</a></li>
				
			</ul>
			
		</div>	
	</div>
	
	<div id="header_1">
		<div class="center">
			<a class="logo" href="<?php echo U('Index/index')?>"><img src="./Public/Home/images/logo.png"/></a>
			<div class="search">
				<div class="search_tab"><span class="check">宝贝</span><span>店铺</span></div>
				<form action="" method="post">
					<input type="text" id="keyword" placeholder="搜流行宝贝" value="" />
					<input type="submit" class="submit" value=""/>
				</form>
				<p>
					<a href="" class="red_f">连衣裙</a>
					<a href="">拖鞋</a>
					<a href="" class="red_f">短裤</a>
					<a href="">套装</a>
					<a href="">泳衣</a>
					<a href="" class="red_f">长裙</a>
					<a href="">睡衣</a>
					<a href="">凉鞋</a>
					<a href="" class="red_f">双肩包</a>
					<a href="">帽子</a>													
				</p>
			</div>
		</div>
	</div>
	<div id="nav">
		<div class="center">
			<ul>
				<?php $_GET['cid']=isset($_GET['cid'])?$_GET['cid']:0 ?>
				<li <?php if($_GET['cid']==0){?>
                class="active"
               <?php }?>><a href="" >首页</a></li>
				<?php foreach ($cateA as $v){?>
				<li <?php if($v['cid']==$_GET['cid']){?>
                class="active"
               <?php }?>><a href="<?php echo U('Cate/index',['cid'=>$v['cid']])?>"><?php echo $v['cname']?></a></li>
				<?php }?>
				<li><span>|</span></li>
				<li><a class="rred" href="">Hi范儿</a></li>
				<li><a class="rred" href="">品牌特卖</a></li>			       
				
			</ul>
		</div>
	</div>